<%% form_for(<%= form_for_link %>) do |f| %>
<% for attribute in attributes -%>
  <p>
    <b><%= attribute.column.human_name %></b><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>

<% end -%>
  <p>
    <%%= f.submit action_label %>
  </p>
<%% end %>